package com.itheima.work1127;

import org.dom4j.Attribute;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;

import javax.xml.parsers.SAXParser;
import java.io.*;
import java.util.List;
import java.util.Properties;

//brand=Iphone11Pro Max
//capacity=256G
//price=10899
public class Demo02 {
    public static void main(String[] args) throws DocumentException, IOException {
        Properties pro = new Properties();
        InputStream is = new FileInputStream("iphone.properties");
        pro.load(is);
        for (String key : pro.stringPropertyNames()) {
            System.out.println(key + "=" + pro.getProperty(key));
        }
    }
}
